unit frmPropostasUnt;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons;

type
  TfrmPropostas = class(TForm)
    Edit1: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    Edit2: TEdit;
    BitBtn1: TBitBtn;
    Label5: TLabel;
    EditNomeCliente: TEdit;
    Edit6: TEdit;
    Label7: TLabel;
    Edit7: TEdit;
    Label8: TLabel;
    Edit9: TEdit;
    Label10: TLabel;
    BitBtn5: TBitBtn;
    BitBtn4: TBitBtn;
    Edit3: TEdit;
    procedure BitBtn1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure BitBtn5Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmPropostas: TfrmPropostas;

implementation

uses frmPropostasProcLaudoUnt, frmPropostaOfcUnt, DMDadosUnt;

{$R *.dfm}

procedure TfrmPropostas.BitBtn1Click(Sender: TObject);
begin
  frmPropostasProcLaudo := TfrmPropostasProcLaudo.Create(Application);
  frmPropostasProcLaudo.Show;
end;

procedure TfrmPropostas.BitBtn5Click(Sender: TObject);
begin
  frmPropostaOfc := TfrmPropostaOfc.Create(Application);
  frmPropostaOfc.Show;
end;

procedure TfrmPropostas.FormCreate(Sender: TObject);
begin
//Edit1.Text := '1';
  with DMDados do
  begin
      cdsControle.Close;
      cdsControle.Params[0].AsString := 'COD_PROPOSTA';
      cdsControle.Open;
      Edit1.Text :=  IntToStr(cdsControleVALOR.AsInteger+1);
      cdsControle.Close;
  end;
end;

end.
